{
	arguments: {
		description: '<?php echo str_replace("\n", "\\n", $_POST['idPhoto']); ?>',
	},
<?php
$photo = new Photo($_POST['idPhoto']);
if ($photo->delete()) {
?>
	type: 'success',
	entry: {
		idGallery: '<?php echo $gallery->get_id(); ?>',
		title: '<?php echo $gallery->get_title(); ?>',
		content: '<?php echo $gallery->get_content(); ?>',
		slug: '<?php echo $gallery->slug; ?>',
		creationDate: '<?php echo $gallery->creationDate; ?>',
		idParent: '<?php echo $gallery->id_parent; ?>',
		type: '<?php echo $gallery->type; ?>'
	}
<?php	
} else {
?>
	type: 'error',
	error: 'Some error ocurred'
<?php
}
?>
}
<?php
exit;
?>